<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function Person() {
        console.log("hello person");
        // this = {}
        console.log(this.__proto__ === Person.prototype);
        // return this;
      }
      /*
        ① 函数执行
        ② this = {};
        ③ this.__proto__ = Person.prototype 构造对象的__proto__ 指向 构造函数原型
        ④ return this;
      */
      new Person();
    </script>
  </body>
</html>
